<%-- 
    Document   : form terima barang
    Created on : Nov 21, 2013, 9:03:55 AM
    Author     : admin
--%>

<%@page import="bean.BarangGudang"%>
<%@page import="oracle.net.aso.C00"%>
<%@page import="bean.Penerimaan"%>
<%@page import="java.sql.SQLException"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.Statement"%>
<%@page import="oracle.jdbc.pool.OracleDataSource"%>
<%@page import="java.sql.Connection"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body bgcolor="856FD7"><br><br><br><br><br><br>
        <%
            Penerimaan penerimaan = new Penerimaan();
            String kodePenerimaan = penerimaan.getKodePenerimaan();
        %>
        <form action="TerimaBarang">
            <table border="0" align="center" width="600">
                <tr>
                    <td align="center"><img src="image/logo.png" width="380" height="100"></td>
                </tr>
            </table><br>
            <font face="ESP_Bold" size="5px"><center>FORM TERIMA BARANG</center></font>
            <table border="0" align="center" width="310">
                <tr>
                    <td width="57%"><font face="Clarendon Blk BT" size="2px">KODE PENERIMAAN</font></td>
                    <td><input type="text" size="15" maxlength="8" name="kode_penerimaan" value="<%=kodePenerimaan%>" disabled="disabled"></td>
                </tr>
                <tr>
                    <td><font face="Clarendon Blk BT" size="2px">NAMA BARANG</font></td>
                    <td><select name="idbarang"><%
                        BarangGudang barangGudang = new BarangGudang();
                        ResultSet resultSet = barangGudang.tampilBarang();
                        while (resultSet.next()) {
                            out.print("<option value='" + resultSet.getString("idbarang") + "'>" + resultSet.getString("namabarang") + "</option>");
                        }
                            %>
                        </select></td>
                </tr>
                <tr>
                    <td><font face="Clarendon Blk BT" size="2px">JUMLAH BARANG</font></td>
                    <td><input type="text" size="15" maxlength="6" name="jumlahbarang"></td>
                </tr>
                <tr>
                    <td><font face="Clarendon Blk BT" size="2px">HARGA BARANG</font></td>
                    <td><input type="text" size="15" maxlength="6" name="hargabarang"></td>
                </tr>
            </table>
            <br>
            <table border="0" align="center" width="250"> 
                <tr>
                    <td align="center"><a href="form_utama_gudang.jsp"><img src="image/kembali_button.png" width="90" height="25"></a>
                    <td align="center"><input type="image" src="image/simpan_button.png" width="90" height="25" name="simpan"></td>
                </tr>
            </table>
        </form>
    </body>
</html>